import {get,post} from '../../utils/request' 
export const getList=(params:any):Promise<any> =>{

    return get("administratorrole/list",params);
}
export const deleteAll=(ids:number[])=>{

    return post("administratorrole/deleteall",{ids});
}
export const del=(id:number)=>{
  
    return get("administratorrole/delete",{id});
}
 
export const add=(data:any)=>{

    return post("administratorrole/add",data);
}

export const getMenuList=(roleid:number):Promise<any> =>{

    return get("menu/list",{roleid});
}